package com.iemp.bean.example;

import java.util.ArrayList;
import java.util.List;

public class CarouselExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CarouselExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCarouselIdIsNull() {
            addCriterion("carousel_id is null");
            return (Criteria) this;
        }

        public Criteria andCarouselIdIsNotNull() {
            addCriterion("carousel_id is not null");
            return (Criteria) this;
        }

        public Criteria andCarouselIdEqualTo(Integer value) {
            addCriterion("carousel_id =", value, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdNotEqualTo(Integer value) {
            addCriterion("carousel_id <>", value, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdGreaterThan(Integer value) {
            addCriterion("carousel_id >", value, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("carousel_id >=", value, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdLessThan(Integer value) {
            addCriterion("carousel_id <", value, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdLessThanOrEqualTo(Integer value) {
            addCriterion("carousel_id <=", value, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdIn(List<Integer> values) {
            addCriterion("carousel_id in", values, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdNotIn(List<Integer> values) {
            addCriterion("carousel_id not in", values, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdBetween(Integer value1, Integer value2) {
            addCriterion("carousel_id between", value1, value2, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselIdNotBetween(Integer value1, Integer value2) {
            addCriterion("carousel_id not between", value1, value2, "carouselId");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlIsNull() {
            addCriterion("carousel_url is null");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlIsNotNull() {
            addCriterion("carousel_url is not null");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlEqualTo(String value) {
            addCriterion("carousel_url =", value, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlNotEqualTo(String value) {
            addCriterion("carousel_url <>", value, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlGreaterThan(String value) {
            addCriterion("carousel_url >", value, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlGreaterThanOrEqualTo(String value) {
            addCriterion("carousel_url >=", value, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlLessThan(String value) {
            addCriterion("carousel_url <", value, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlLessThanOrEqualTo(String value) {
            addCriterion("carousel_url <=", value, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlLike(String value) {
            addCriterion("carousel_url like", value, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlNotLike(String value) {
            addCriterion("carousel_url not like", value, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlIn(List<String> values) {
            addCriterion("carousel_url in", values, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlNotIn(List<String> values) {
            addCriterion("carousel_url not in", values, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlBetween(String value1, String value2) {
            addCriterion("carousel_url between", value1, value2, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselUrlNotBetween(String value1, String value2) {
            addCriterion("carousel_url not between", value1, value2, "carouselUrl");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverIsNull() {
            addCriterion("carousel_cover is null");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverIsNotNull() {
            addCriterion("carousel_cover is not null");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverEqualTo(String value) {
            addCriterion("carousel_cover =", value, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverNotEqualTo(String value) {
            addCriterion("carousel_cover <>", value, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverGreaterThan(String value) {
            addCriterion("carousel_cover >", value, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverGreaterThanOrEqualTo(String value) {
            addCriterion("carousel_cover >=", value, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverLessThan(String value) {
            addCriterion("carousel_cover <", value, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverLessThanOrEqualTo(String value) {
            addCriterion("carousel_cover <=", value, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverLike(String value) {
            addCriterion("carousel_cover like", value, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverNotLike(String value) {
            addCriterion("carousel_cover not like", value, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverIn(List<String> values) {
            addCriterion("carousel_cover in", values, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverNotIn(List<String> values) {
            addCriterion("carousel_cover not in", values, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverBetween(String value1, String value2) {
            addCriterion("carousel_cover between", value1, value2, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselCoverNotBetween(String value1, String value2) {
            addCriterion("carousel_cover not between", value1, value2, "carouselCover");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusIsNull() {
            addCriterion("carousel_status is null");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusIsNotNull() {
            addCriterion("carousel_status is not null");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusEqualTo(Integer value) {
            addCriterion("carousel_status =", value, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusNotEqualTo(Integer value) {
            addCriterion("carousel_status <>", value, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusGreaterThan(Integer value) {
            addCriterion("carousel_status >", value, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("carousel_status >=", value, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusLessThan(Integer value) {
            addCriterion("carousel_status <", value, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusLessThanOrEqualTo(Integer value) {
            addCriterion("carousel_status <=", value, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusIn(List<Integer> values) {
            addCriterion("carousel_status in", values, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusNotIn(List<Integer> values) {
            addCriterion("carousel_status not in", values, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusBetween(Integer value1, Integer value2) {
            addCriterion("carousel_status between", value1, value2, "carouselStatus");
            return (Criteria) this;
        }

        public Criteria andCarouselStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("carousel_status not between", value1, value2, "carouselStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}